

import java.io.IOException;

import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;


public class NavegacaoProfessorServlet extends HttpServlet {
	private static final long serialVersionUID = 1L;
       
   
    public NavegacaoProfessorServlet() {
        super();
        
    }
    
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
String pagina = request.getParameter("pagina");
		
		if(pagina.equalsIgnoreCase("gerenciar_turmas")){
    		RequestDispatcher dispatcher = request.getRequestDispatcher("professor/turmas.jsp");
    		dispatcher.forward(request, response);
    		return;
		}
		
		else if(pagina.equalsIgnoreCase("calendario")){
			RequestDispatcher dispatcher = request.getRequestDispatcher("professor/calendario.jsp");
    		dispatcher.forward(request, response);
    		return;
		}
		
		/*else if(pagina.equalsIgnoreCase("disciplina")){
			RequestDispatcher dispatcher = request.getRequestDispatcher("aluno/disciplina.jsp");
    		dispatcher.forward(request, response);
    		return;
		}*/
		
		/*else if(pagina.equalsIgnoreCase("disciplina_detalhes")){
			RequestDispatcher dispatcher = request.getRequestDispatcher("aluno/disciplina_detalhes.jsp");
    		dispatcher.forward(request, response);
    		return;
		}*/
		
		else if(pagina.equalsIgnoreCase("correio")){
			RequestDispatcher dispatcher = request.getRequestDispatcher("professor/correio.jsp");
    		dispatcher.forward(request, response);
    		return;
		}
		
		/*else if(pagina.equalsIgnoreCase("visualizar_disciplina")){
			RequestDispatcher dispatcher = request.getRequestDispatcher("aluno/visualizar_disciplina.jsp");
    		dispatcher.forward(request, response);
    		return;
		}*/
		
		else if(pagina.equalsIgnoreCase("horario_professor")){
			RequestDispatcher dispatcher = request.getRequestDispatcher("professor/horario_professor.jsp");
    		dispatcher.forward(request, response);
    		return;
		}
		
	}

	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		
	}

}
